package com.xiaoyg.lession01.chapter21;

public class Run {

    public static void main(String[] args) {
        try {
            SyncronizedObject object = new SyncronizedObject();
            MyThread thread = new MyThread(object);
            thread.start();
            Thread.sleep(500);
            thread.stop();
            System.out.println(object.getUsername()+" "+object.getPassword());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
